<%--
  Created by IntelliJ IDEA.
  User: lufei
  Date: 2025/3/22
  Time: 09:08
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="${ pageContext.request.contextPath}/admin/bootstrap/css/bootstrap.min.css">
	<script src="${ pageContext.request.contextPath}/admin/bootstrap/js/jquery-2.1.0.min.js"></script>
	<script src="${ pageContext.request.contextPath}/admin/bootstrap/js/bootstrap.min.js"></script>
    <style>

       .cus-container{
           width: 1368px;
       }
       #user-add .modal-content{
       	padding: 0 20px 20px;	
       }
       #user-edit .modal-content{
       	padding: 0 20px 20px;	
       }
       
    </style>
</head>
<body>
	
    <div class="container cus-container">
		<!-- 添加用户模态框 -->
		<h3 class="text-center">添加用户</h3>

		<form action="${ pageContext.request.contextPath}/users/add" method="post" enctype="multipart/form-data">
			<div class="form-group">
				<label for="user">姓名：</label>
				<input type="text" class="form-control" name="username" placeholder="请输入姓名">
			</div>
			
			<div class="form-group">
				<label for="pass">密码：</label>
				<input type="password" class="form-control" readonly  name="password" placeholder="默认密码12345">
			</div>
			
			<div class="form-group">
				<label for="gender">性别：</label>
				<label class="radio-inline">
					<input type="radio" name="sex" value="男"> 男 
				</label>
				<label class="radio-inline">
					<input type="radio" name="sex" value="女"> 女 
				</label>
			</div>
			<div class="form-group">
				<label for="birthday">出生日期：</label>
				<input type="date" class="form-control" name="birthday" placeholder="请输入出生日期">
			</div>
			<div class="form-group">
				<label for="sid">是不是商家员工：</label>
<%--				下拉菜单--%>
				<select name="sid" class="form-control">
					<option value="">请选择</option>
					<option value="0">否</option>
					<option value="1">是</option>
				</select>
			</div>
<%--			头像--%>
			<div class="form-group">
				<label for="user_tx">头像：</label>
				<input type="file" class="form-control" id="user_tx" name="image">
			</div>
			<div class="text-center">	                
				<button type="submit" class="btn btn-primary">添加</button>
			</div>         
		</form>
    </div>
    
</body>
</html>